package com.forezp.thinking.chapter14.proxy;

/**
 * Created by forezp on 2017/12/4.
 */
public class SimpleProxy implements Interface {

    private Interface anInterface;

    public SimpleProxy(Interface anInterface) {
        this.anInterface = anInterface;

    }

    @Override
    public void doSomething() {
        System.out.println("SimpleProxy doSomething ");
        anInterface.doSomething();
    }

    @Override
    public void doSomethingElse(String args) {
        System.out.println("SimpleProxy doSomethingElse ");
        anInterface.doSomethingElse(args);
    }
}
